import Layout from '@/layout'

const jianpiaoRouter = {
  path: '/jianpiao',
  component: Layout,
  redirect: 'noRedirect',
  name: 'Jianpiao',
  meta: {
    title: '检票子系统',
    icon: 'form',
    roles: ['检票']
  },
  children: [
    {
      path: 'jianpiao',
      component: () => import('@/views/jianpiao/jianpiao/jianpiao'),
      name: 'Jianpiao',
      meta: { title: '检票', noCache: true }
    },
    {
      path: 'tuijian',
      component: () => import('@/views/jianpiao/tuijian/tuijian'),
      name: 'Tuijian',
      meta: { title: '退检', noCache: true }
    },
    {
      path: 'dayin',
      component: () => import('@/views/jianpiao/dayin/dayin'),
      name: 'Dayin',
      meta: { title: '打印结算单', noCache: true }
    },
    {
      path: 'chaxun',
      component: () => import('@/views/jianpiao/chaxun/chaxun'),
      name: 'Chaxun',
      meta: { title: '车辆信息查询', noCache: true }
    }
  ]
}

export default jianpiaoRouter
